<?php sleep(1) ?>
<h1>File form demo</h1>
<form action="index.php" enctype="multipart/form-data" method="post">
    <fieldset>
    <input type="hidden" name="page" value="3" />
    <label>Select file: <input type="file" name="file" /></label>
    <input type="submit" value="send" />
    </fieldset>
</form>
<?php
    if (isset($_FILES['file'])) {
        if ($_FILES['file']['error'] == UPLOAD_ERR_OK) {
            ?><p>File name: <?php echo $_FILES['file']['name'] ?></p><?php
        }
    }
?>